<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * ContactForm is the model behind the contact form.
 */
class AlipayconfigForm extends Model
{
    public $count;//支付宝账号
    public $qrcode;//支付宝二维码
    public $qrcodefile;
    public $disable;
    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['count','disable'], 'required'],
            ['qrcodefile','file'],
            ['count', 'string', 'max' => 50],
            ['qrcode', 'string', 'max' => 128],
        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
             'count' => '支付宝账号',
             'qrcode' => '支付宝二维码',
             'qrcodefile' => '支付宝二维码',
             'disable' => '关闭此支付'
         ];
     }

}
